package com.eshipenet.shipnet.edgeboxrpc.service;

import com.eshipenet.shipnet.edgebox.EdgeBox;
import com.eshipenet.shipnet.edgeboxrpc.dao.EdgeBoxDao;
import org.apache.ignite.services.ServiceContext;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EdgeBoxEdgeServiceImp implements EdgeBoxService {

  //    @Autowired
  //    private EdgeBoxDao dao;


  @Override
  public List<EdgeBox> findALL() {

    EdgeBoxDao dao = new EdgeBoxDao();

    List<EdgeBox> list = dao.findAll();

    return list;
  }

  @Override
  public void cancel(ServiceContext ctx) {
    System.out.println("cancel.......");
  }

  @Override
  public void init(ServiceContext ctx) throws Exception {
    System.out.println("init.......");
  }

  @Override
  public void execute(ServiceContext ctx) throws Exception {
    System.out.println("execute.......");
  }
}
